<template>
  <div id="app">
    <editor
      ref="editor"
      v-model="msg"
      :disabled="disabled"
      @onClick="onClick"
    ></editor>
  </div>
</template>

<script>
import Editor from "./components/tinymceDemo.vue";
// import Editor from "./components/imcoder-tinymce.vue";
export default {
  name: "app",
  components: { Editor },
  data() {
    return {
      msg: "",
      disabled: false,
    };
  },
  methods: {
    // 鼠标单击的事件
    onClick() {},
    // 清空内容
    clear() {
      this.$refs.editor.clear();
    },
  },
};
</script>

<style></style>
